import request from '@/utils/request'
export const getTaskListApi = (params) => {
  return request.get('/api/task-service/task/search', { params })
}
export const postTaskListApi = (data) => request.post('/api/task-service/task/create', data)

export const getTaskStatu = () => {
  return request.get('/api/task-service/task/allTaskStatus')
}
export const getTaskInfo = (taskId) => {
  return request.get(`/api/task-service/task/taskInfo/${taskId}`)
}
export const getTasklist = (alertValue) => {
  return request.get('/api/task-service/taskType/list', alertValue)
}
export const cancleUserApi = ({ taskId, desc }) => {
  return request.post(`/api/task-service/task/cancel/${taskId}`, desc)
}
